import re
phonePattern = re.compile(r'(\d{4})\D*(\d{2})\D*(\d{2})\D*')
print phonePattern.search('work 2008-09/23 1212').groups()        
